/*
*************************************
* PocketGTT
*************************************
This file is part of PocketGTT.

PocketGTT is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

PocketGTT is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with PocketGTT.  If not, see <http://www.gnu.org/licenses/>.
*/

import QtQuick 1.0

Rectangle {
    id: btn
    anchors.centerIn: parent
    width: 44
    height: 44
    radius: 10

    property bool pressed: false
    property color pressedColor: "transparent"

    color: btn.pressed ? btn.pressedColor : "transparent"
    Image {
        id: btnImg
        fillMode: Image.PreserveAspectFit
        height: 32 //(parent.height >= 80) ? 64 : parent.height * 0.4
        anchors.centerIn: parent
        source: "qrc:ui/play.svg"
    }
}

